package java0430;

public class Person {
    //姓名
    private String name;
    //年龄
    private int age;
    //性别
    private String gender;

    /** 吃饭 */
    public void eat(){
        System.out.println(name +"在吃饭");
    }

    /** 说话 */
    public void speak(){
        System.out.println(name + "在说话");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public Person(String name, int age, String gender){
        this.name = name;
        this.age = age;
        this.gender = gender;

    }

    public Person() {

    }
}
